package sk.naive.talker.util;

import sk.naive.talker.props.Property;

import java.util.*;

/**
 * MutablaPropertyConfiguration.
 *
 * @author <a href="mailto:virgo@naive.deepblue.sk">Richard "Virgo" Richter</a>
 * @version $Revision: 1.1 $ $Date: 2004/10/10 09:54:53 $
 */
public class MutablePropertyConfiguration extends PropertyConfiguration {
	public MutablePropertyConfiguration(String resourceName) {
		super(resourceName);
	}

	public void mergeProperties(Map<String,Property> props) {
		propertyObject.putAll(props);
	}

	public void addSettable(Set<String> userSettable) {
		this.settable.addAll(userSettable);
		fixate();
	}

	public void addPersistent(Set<String> userPersistent) {
		this.persistent.addAll(userPersistent);
		fixate();
	}
}
